﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SGRapidForm.Permission.Service.Interface;
using SGRapidForm.Permission.Entity;
using SGRapidForm.Permission.Component;

namespace SGRapidForm.Permission.Service
{
    public partial class PermissionService : IPermissionService
    {
       private ModuleComponent moduleComponent;
       public ModuleComponent ModuleComponent 
       {
           get
           {
               if (moduleComponent == null)
               {
                   this.moduleComponent = new ModuleComponent();
               }
               return this.moduleComponent;
           }
           set { moduleComponent = value; }
       }

       public List<ModuleEntity> Module_GetAll()
       {

           return this.ModuleComponent.Module_GetAll();
       }
       public List<ModuleEntity> Module_PagingGet(Int32 startRecord, Int32 maxRecords, String sortColumns, String filterConditions)
       {
           return this.ModuleComponent.PagingGetModules(startRecord, maxRecords, sortColumns, filterConditions);
       }
       public int Module_PagingGetCount(String filterConditions)
       {
           return this.ModuleComponent.PagingGetModuleCount(filterConditions);
       }
       public bool Module_Add(ModuleEntity module)
       {
           return this.ModuleComponent.AddModule(module);
       }
       public bool Module_Delete(string keyid)
       {
           return this.ModuleComponent.DeleteModule(keyid);
       }
       public bool Module_BulkDelete(string keyids)
       {
           return this.ModuleComponent.BulkDeleteModule(keyids);
       }
       public ModuleEntity Module_GetByKeyid(string keyid)
       {
           return this.ModuleComponent.GetModuleByKeyid(keyid);
       }
       public bool Module_Update(ModuleEntity module)
       {
           return this.ModuleComponent.UpdateModule(module);
       }
       public List<ModuleEntity> Module_GetByRokeKeyid(string rolekeyid)
       {
           return this.ModuleComponent.GetModuleByRoleKeyid(rolekeyid);
       }
    }
}
